<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>智联同城——小程序管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
    <style type="text/css">
        .tongji-box{
            text-align: center;
            background: #63BA79;
            padding:20px;
            color: #fff;
        }
        .tongji-title{
            font-size: 26px;
        }
        .tongji-num{
            font-size: 24px;
        }
        #chart-box{
            margin-top: 30px;
            height: 500px;
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">智联同城</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item "><a href="{:U('Index/index')}">首页</a></li>
            <li class="layui-nav-item"><a href="{:U('InfoCate/index')}">分类信息管理</a></li>
            <li class="layui-nav-item"><a href="{:U('ShopCate/index')}">好店管理</a></li>
            <li class="layui-nav-item"><a href="{:U('Quan/index')}">同城圈管理</a></li>
            <li class="layui-nav-item"><a href="{:U('Member/index')}">用户管理</a></li>
            <li class="layui-nav-item"><a href="{:U('Takeout/index')}">餐饮管理</a></li>
            <li class="layui-nav-item layui-this" ><a href="{:U('Credit/flash')}">积分商城</a></li>
            <li class="layui-nav-item"><a href="{:U('Home/Index/index')}">切换小程序</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{$Think.session.wechat.headimg}" class="layui-nav-img">
                    {$Think.session.wechat.nickname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:U('Home/Index/index')}">切换小程序</a></dd>
                    <!-- <dd><a href="">安全设置</a></dd> -->
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{$Think.session.headimgurl}" class="layui-nav-img">
                    {$Think.session.nickname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:U('Home/Public/logout')}">退出登录</a></dd>
                    <!-- <dd><a href="">安全设置</a></dd> -->
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">积分商品</a>
                    <dl class="layui-nav-child">
                        <dd class=""><a href="{:U('credit/goodsCate')}">&nbsp;&nbsp;&nbsp;&nbsp;分类管理</a></dd>
                    </dl>
                    <dl class="layui-nav-child">
                        <dd class=""><a href="{:U('credit/goodsAdmin')}">&nbsp;&nbsp;&nbsp;&nbsp;商品管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">设置</a>
                    <dl class="layui-nav-child">
                        <dd class="layui-this"><a href="{:U('credit/setBasic')}">&nbsp;&nbsp;&nbsp;&nbsp;基本设置</a></dd>
                    </dl>
                </li>

            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding:0 15px;">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>积分兑换比例</legend>
            </fieldset>

            <!--0店铺入驻 1同城卡 2信息发布 3店铺升级 4商品核销 5送礼物 6餐饮 7签到-->
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">店铺入驻 : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1元 =</label>
                    <div class="layui-input-block">
                        <input style="margin-right: 0;width: 100px;" type="number" name="shop_in" lay-verify="required" placeholder="积分" autocomplete="off" step="0.01" class="layui-input" value="{$info.shop_in}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">同城卡 : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1元 =</label>
                    <div class="layui-input-block">
                        <input style="margin-right: 0;width: 100px;" type="number" name="tc_card" lay-verify="required" placeholder="积分" autocomplete="off" step="0.01" class="layui-input" value="{$info.tc_card}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">信息发布 : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1元 =</label>
                    <div class="layui-input-block">
                        <input style="margin-right: 0;width: 100px;" type="number" name="release" lay-verify="required" placeholder="积分" autocomplete="off" step="0.01" class="layui-input" value="{$info.release}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">店铺升级 : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1元 =</label>
                    <div class="layui-input-block">
                        <input style="margin-right: 0;width: 100px;" type="number" name="shop_lv" lay-verify="required" placeholder="积分" autocomplete="off" step="0.01" class="layui-input" value="{$info.shop_lv}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">商品核销 : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1元 =</label>
                    <div class="layui-input-block">
                        <input style="margin-right: 0;width: 100px;" type="number" name="goods_check" lay-verify="required" placeholder="积分" autocomplete="off" step="0.01" class="layui-input" value="{$info.goods_check}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">送礼物 : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1元 =</label>
                    <div class="layui-input-block">
                        <input style="margin-right: 0;width: 100px;" type="number" name="give_gift" lay-verify="required" placeholder="积分" autocomplete="off" step="0.01" class="layui-input" value="{$info.give_gift}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">餐饮 : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1元 =</label>
                    <div class="layui-input-block">
                        <input style="margin-right: 0;width: 100px;" type="number" name="takeout" lay-verify="required" placeholder="积分" autocomplete="off" step="0.01" class="layui-input" value="{$info.takeout}">
                    </div>
                </div>
                <!--<div class="layui-form-item">-->
                    <!--<label class="layui-form-label" style="width: 150px;">签到 : &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1日 =</label>-->
                    <!--<div class="layui-input-block">-->
                        <!--<input style="margin-right: 0;width: 100px;" type="number" name="sign" lay-verify="required" placeholder="积分" autocomplete="off" step="0.01" class="layui-input" value="{$info.sign}">-->
                    <!--</div>-->
                <!--</div>-->
                <input type="hidden" name="sign" value="1">
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="*">立即提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © 2017-2018 <a href="https://www.58zltc.com" target="_blank">智联同城</a> All Rights Reserved.
    </div>
</div>
<script src="__PUBLIC__/js/echarts.min.js" charset="utf-8"></script>
<script src="__PUBLIC__/layui/layui.js" charset="utf-8"></script>
<script>
    //JavaScript代码区域
    layui.use(['form','upload','element','laypage','layer'], function(){
        var element = layui.element;
        var form = layui.form
                ,$ = layui.jquery

        form.on('submit(*)', function(data){
            $.post('#', data.field, function(e) {
                layer.alert(e.info);
            });
            return false;
        });
    });



    var myChart = echarts.init(document.getElementById('chart-box'));
    var option = {
        title: {
            text: '一周趋势'
        },
        tooltip: {},
        legend: {
            data:['访问次数','访问人数']
        },
        xAxis: {
            data: ["2017-10-12","2017-10-13","2017-10-14","2017-10-15","2017-10-16","2017-10-17","2017-10-18"]
        },
        yAxis: {},
        series: [{
            name: '访问次数',
            type: 'bar',
            data: [2, 2, 3, 4, 5, 6, 7]
        },{
            name: '访问人数',
            type: 'bar',
            data: [1, 1, 2, 1, 2, 3, 5]
        }],
        color: ['#FFB800','#FF5722', '#01AAED', '#5FB878', '#91c7ae','#749f83',  '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3']
    };
    myChart.setOption(option);
</script>
</body>
</html>
